#pragma once
#include "GacUI\GacUI.h"
class IniColorizer :
	public GuiTextBoxRegexColorizer
{
	typedef collections::Array<text::ColorEntry> ColorArray;
public:
	IniColorizer();
	~IniColorizer();

	int GetStartState();
	int ColorizeLine(const wchar_t* text, unsigned __int32* colors, int length, int startState);
	const ColorArray& GetColors() { return colors; }

private:
	static const int NORMAL_COLOR = 0;
	static const int SECTION_COLOR = 1;
	static const int ATTRIBUTE_COLOR = 2;
	static const int OPERATOR_COLOR = 3;
	static const int COMMENT_COLOR = 4;

	ColorArray colors;
};

